
const fs = require('fs');
const path = require('path');

const LANG_FILE = './en/common.json'; // 语言包输出路径

let key_arr = fs.readFileSync('./key.txt', 'utf8').split('\n');
let value_arr = fs.readFileSync('./value.txt', 'utf8').split('\n');

let object = {}
key_arr.forEach((k,i)=>{
    object[k] = value_arr[i];
})

fs.mkdirSync(path.dirname(LANG_FILE), { recursive: true });
fs.writeFileSync(LANG_FILE, JSON.stringify(object, null, 2) + '\n');








